home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / tex / style / misc / userps.sty < prev    next >
Text File  |  1995-11-25  |  2KB  |  55 lines

  1. % convenient LaTeX pagestyles,
  2. %  defined by various LaTeX users
  3. %
  4. % *** WARNING   WARNING   WARNING ***
  5. % The macros in this file are NOT guaranteed to work and they are
  6. % definitely NOT maintained.  Do not count on them remaining
  7. % stable over long periods: if you use them in a thesis (say),
  8. % copy the ones you use to your own macro file!
  9. %
  10. % To invoke the pagestyle named \ps@foo, you can say
  11. %
  12. %       \pagestyle{foo}
  13. % or
  14. %       \thispagestyle{foo}
  15. %
  16. %
  17. % Latex users are encouraged to create their own styles and put
  18. % them in this file.  They should keep in mind the following
  19. % points:
  20. %        1. All styles added should be documented.
  21. %        2. The style added must work REGARDLESS of the document
  22. %           style and point size used, or else they should
  23. %           clearly state which styles and sizes they are
  24. %           restricted to.
  25. %        3. Don't allow spurious spaces into the style macros!!!
  26. %        4. All styles should be added anonymously unless the
  27. %           author wants to get hundreds of questions about
  28. %           usage!
  29. %
  30.  
  31. % DON'T MESS WITH THIS LINE.  IT MUST PRECEDE ALL OTHERS!
  32. \makeatletter           % allow @ in macro names
  33.  
  34.  
  35. % A SAMPLE STYLE:
  36. %
  37. % STYLE plaintop : invoked (for example) with \pagestyle{plaintop}
  38. %
  39. % This style is like the Plain style (i.e., just a page number is output)
  40. % but the page number is in the middle of the header line (at the top of
  41. % the page) and the footer line (at the bottom of the page) is blank.
  42. %
  43. \def\ps@plaintop{%
  44.   \def\@oddhead{\rm\hfil\thepage\hfil}%
  45.   \def\@oddfoot{}%
  46.   \def\@evenhead\@oddhead
  47.   \let\@evenfoot\@oddfoot}
  48.  
  49.  
  50. %% ADD MORE STYLES HERE.
  51.  
  52.  
  53. % DON'T MESS WITH THE FOLLOWING LINE.  IT MUST BE THE LAST LINE IN THE FILE!!
  54. \makeatother
  55.